
<ion-modal-view class="projects">
  <ion-header-bar>
    <div class="buttons left-buttons">
      <button class="button button-icon ion-ios-arrow-back" ng-click="cancelSelected()"></button>
    </div>
    <h2 class="title">查询项目</h2>
    <div class="buttons right-buttons">
      <button class="button button-clear button-calm " ng-click="confirmSelected()">确定</button>
    </div>
  </ion-header-bar>

  <ion-header-bar class="bar-subheader">
    <div  class="search-width">
      <label class="item item-input" >
        <i style="width: 22px;" class="icon ion-search placeholder-icon" on-tap="filterProject(searchProjectName)"></i>
        <input type="text" placeholder="请输入项目简称查询" ng-model="searchProjectName">
      </label>
      <!--<i class="icon ion-android-close placeholder-icon" ng-show="searchProjectName" on-tap="clearSearch()"></i>-->
    </div>
  </ion-header-bar>

  <ion-content style="margin-top: 10px">
    <div class="list">
      <label ng-repeat="item in projects |filter:searchProjectName" class="item item-radio">
        <input type="radio" name="group" value="{{item.Name}}" ng-click="getOneProject(item)">
        <div class="item-content">
          {{item.Name}}
        </div>
        <i class="radio-icon icon ion-checkmark"></i>
      </label>
    </div>
  </ion-content>
</ion-modal-view>

